/**
 * 
 */
package at.fhj.ase.helper;

import at.fhj.ase.shoppingcart.MDouble;
import at.fhj.ase.shoppingcart.MInteger;
import at.fhj.ase.shoppingcart.MLong;
import at.fhj.ase.shoppingcart.MString;

/**
 * @author Henning
 *
 */
public class JavaGeneratorHelper {
	private JavaGeneratorHelper() {}

	/*
	 * Utility Methods
	 */
	public static String getPropertyName(String name) {
		return name.substring(0, 1).toUpperCase() + name.substring(1);
	}

	/*
	 * Mapping Methods (from EType to Java type names)
	 */

	public static String getJavaTypeName(MInteger type) {
		return "int";
	}

	public static String getJavaTypeName(MString type) {
		return "String";
	}

	public static String getJavaTypeName(MDouble type) {
		return "double";
	}
	
	public static String getJavaTypeName(MLong type) {
		return "long";
	}
}
	


